/* =============================================================
 * System Name：Document Control System
 * File Name： OAuthProvider.java
 * --------------------------------------------------------------
 * (C) Copyright M+W Group 2012 All Rights Reserved.
 *
 *  VERSION    DATE        BY                CHANGE/COMMENT
 * ----------------------------------------------------------------
 *
 */
package com.deco.authorization.api;

import org.scribe.builder.api.Api;

import com.deco.authorization.user.UserPopulator;

public class OAuthProvider {
	// In line with the oAuth framework, the provider API where authorization
	// detail is defined.
	private Api api;

	// key oAuth provider provided
	private String apiKey;
	// secret oAuth provider provided
	private String apiSecret;

	// Authorization verifier
	private String authVerifier;
	// Authorized token
	private String authToken;
	
	//call back url
	private String callback;

	private UserPopulator userPopulator;

	public Api getApi() {
		return api;
	}

	public void setApi(Api api) {
		this.api = api;
	}

	public String getApiKey() {
		return apiKey;
	}

	public void setApiKey(String apiKey) {
		this.apiKey = apiKey;
	}

	public String getApiSecret() {
		return apiSecret;
	}

	public void setApiSecret(String apiSecret) {
		this.apiSecret = apiSecret;
	}

	public String getAuthVerifier() {
		return authVerifier;
	}

	public void setAuthVerifier(String authVerifier) {
		this.authVerifier = authVerifier;
	}

	public String getAuthToken() {
		return authToken;
	}

	public void setAuthToken(String authToken) {
		this.authToken = authToken;
	}

	public UserPopulator getUserPopulator() {
		return userPopulator;
	}

	public void setUserPopulator(UserPopulator userPopulator) {
		this.userPopulator = userPopulator;
	}

	public String getCallback() {
		return callback;
	}

	public void setCallback(String callback) {
		this.callback = callback;
	}
	

}
